Rafael Dohms above the article let me surprise, can not help but translated down, at the same time supplemented part of the content.
Spl,php Standards Library (standard PHP library), which has built-in components and interfaces from PHP 5.0, and is
This article mainly introduces the application of PHP SPL, combined with examples to analyze the SPL is very important but not well-known features and related operating skills, the need for friends can refer to the following
This paper describes
This time to everyone to bring PHP+SPL application case detailed, PHP+SPL application of attention to what, the following is the actual case, together to see.
Rafael Dohms above the article let me surprise, can not help but translated down, at the
Rafael Dohms I was amazed by the previous article. I couldn't help but translate it and added some content.
SPL and PHP Standard Library (Standard PHP Library), which are built-in components and interfaces from PHP 5.0 and have gradually matured
Php Framework Development 2 (SPL library and controller ). According to the above directory structure (if not clear, you can refer to the previous article ). In the simple folder, I created a simple. php. [php] prequireincludesexceptions. php;
According to the above directory structure (if not clear, you can refer to the previous article ). I created a new simple in the simple folder. php. [php] & lt; p & gt; require & amp; #39; des/exceptions. php & amp; #39; require & amp; #39;
Php Framework Development 2 (SPL library and controller) is based on the preceding directory structure (if not clear, refer to the previous article ). In the simple folder, I created a simple. php. require 'shortdes/exceptions. php'; require
Php Framework Development 2 (SPL library and controller) is based on the preceding directory structure (if not clear, refer to the previous article ). I created a simple. php. requireincludesexceptions. php; requireincludesautoloader. php;
According to the directory structure of the words (if you are not clear can see an article). I created a new simple.php within the simple folder.
[PHP]
Require ' includes/exceptions.php ';Require ' includes/autoloader.php ';Session_Start ();
$view =
This example describes the autoloading usage of the Zend Framework tutorial. Share to everyone for your reference, as follows:
I. Overview
Automatic loading is a mechanism that does not rely on manual PHP code writing. Refer to the»php manual for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.